package com.tiancheng.onecode.configuration;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * 示例照片配置
 */
@Data
@Configuration
@EnableConfigurationProperties(MiniAppProperties.class)
@ConfigurationProperties(prefix = "example-image")
public class ExampleImageProperties {

    private List<ImageItem> list;

    @Data
    public static class ImageItem {
        /**
         * 图片类型
         */
        private Integer type;
        /**
         * 图片类型名称
         */
        private String name;
        /**
         * 图片url
         */
        private String url;
    }

}
